package com.fa4j.product.stock.model;

import com.fa4j.common.base.model.PageQuery;
import com.fa4j.common.data.annotation.Query;
import com.fa4j.common.data.model.QueryType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "商品库存记录分页查询参数")
public class StockRecordPageQuery extends PageQuery {

    @Schema(description = "库存ID")
    private Long stockId;

    @Schema(description = "业务类型")
    private StockBizType bizType;

    @Size(max = 64)
    @Schema(description = "业务单号")
    private String bizNo;

    @Schema(description = "操作人ID")
    private Long operatorId;

    @Query(type = QueryType.LIKE)
    @Size(max = 32)
    @Schema(description = "库存记录说明")
    private String remark;

}
